<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a th:href="@{/toAdd(add)}">添加</a>


<form th:action="@{'/findSelect'}">
    <input name="age" type="text" placeholder="输入年龄">
    <!--/*@thymesVar id="users" type="com.example.pojo.Users"*/-->

    <input type="submit" value="提交">
<table>

    <!--/*@thymesVar id="users" type="com.example.pojo.Users"*/-->

    <tr>
        <td>编号</td>
        <td>名字</td>
        <td>性别</td>
        <td>密码</td>
        <td>年龄</td>
        <td>座机号</td>
    </tr>
    <tr th:each="users:${list}">





        <td th:text="${users.id}">编号</td>
        <td th:text="${users.name}">名字</td>
        <td th:text="${users.gender}">性别</td>
        <td th:text="${users.password}">密码</td>
        <td th:text="${users.age}">年龄</td>
        <td th:text="${users.tel}">座机号</td>
        <td>
            <a th:href="@{/findById(id=${users.id})}">修改</a>
            <a th:href="@{/del(id=${users.id})}">删除</a>
        </td>
    </tr>

</table>
</form>
</body>
</html>